﻿<?xml version="1.0" encoding="utf-8"?>
<Settings>

  <!-- Path to SharePoint log files -->
  <UpgradeLogFilePath>D:\SharePoint\Logs</UpgradeLogFilePath>

  <!-- Farm account: used to make sure user profile service is provisioned using the farm account   -->
  <FarmAccount>contoso\sharepointfarm</FarmAccount>

  <!-- This section defines host file entries to be made in system32\drivers\etc\hosts  -->
  <HostsFileEntries>
    <HostsFileEntry Name="intranet.contoso.com"
                    IPAddress="127.0.0.1" />
    <HostsFileEntry Name="intranet"
                    IPAddress="127.0.0.1" />
  </HostsFileEntries>

  <!--
  This section defines the web applications to be created and the content databases to be upgraded
  Ensure managed accounts referenced here have already been added to the 2010 farm
  -->
  <WebApplications>
    <WebApplication Name="Intranet"
                    Port="80"
                    Url="http://intranet.contoso.com"
                    HostHeader="intranet.contoso.com"
                    ApplicationPool="SharePoint - Intranet"
                    ApplicationPoolIdentity="contoso\apppool"
                    ServiceApplicationProxyGroup="[default]"
                    Path="D:\inetpub\wwwroot\wss\VirtualDirectories\Intranet\">
      <ContentDatabases>
        <ContentDatabase>SPS2010_Contoso_Intranet_Content</ContentDatabase>
        <ContentDatabase>SPS2010_Contoso_Intranet_ProjectService_Content</ContentDatabase>
      </ContentDatabases>
      <Bindings>
        <Binding HostHeader="Intranet"
                 Port="80"
                 IPAddress="*" />
      </Bindings>
      <AlternateAccessMappings>
        <AlternateAccessMapping Url="http://intranet"
                                Zone="Default" />
      </AlternateAccessMappings>
      <FeaturesToEnable>
        <FeatureToEnable FeatureFolderName="DP.Sharepoint.Workflow" />
      </FeaturesToEnable>
      <Policies>
        <Policy UserName="contoso\FarmAdmins"
                DisplayName="Farm Admins">
          <Roles>
            <Role Name="Full Control" />
          </Roles>
        </Policy>
      </Policies>
    </WebApplication>

    <WebApplication Name="MySite"
                    Port="80"
                    Url="http://mysite.contoso.com"
                    HostHeader="mysite.contoso.com"
                    ApplicationPool="SharePoint - MySite"
                    ApplicationPoolIdentity="contoso\apppool"
                    ServiceApplicationProxyGroup="[default]"
                    Path="D:\inetpub\wwwroot\wss\VirtualDirectories\mysite\">
      <ContentDatabases>
        <ContentDatabase>SPS2010_Contoso_MySite_Content</ContentDatabase>
      </ContentDatabases>
      <Policies>
        <Policy UserName="contoso\FarmAdmins"
                DisplayName="Farm Admins">
          <Roles>
            <Role Name="Full Control" />
          </Roles>
        </Policy>
      </Policies>
    </WebApplication>
  </WebApplications>

  <ServiceApplications>

    <!--  Defines the shared service providers to upgrade to user profile service applications  -->
    <ProfileServiceApplications>
      <ProfileServiceApplication
        Name="User Profile Service Application"
        ProfileDBName="SPS2010_Contoso_Farm_ProfileService_Profile"
        ProfileSyncDBName="SPS2010_Contoso_Farm_ProfileService_Sync"
        SocialDBName="SPS2010_Contoso_Farm_ProfileService_Social"
        ApplicationPool="SharePoint Hosted Services"
        MySiteHostLocation="http://mysite.contoso.com/"
        SearchCenter="http://intranet.contoso.com/searchcenter/Pages">
        <Permissions>
          <Permission UserName="contoso\FarmAdmins"
                      Rights="Full Control" />
        </Permissions>
        <ManagedMetadataProperties>
          <ManagedMetadataProperty Identity="SPS-Interests"
                                   TermSetName="Interests" />
          <ManagedMetadataProperty Identity="SPS-Responsibility"
                                   TermSetName="Responsibilities" />
          <ManagedMetadataProperty Identity="SPS-Skills"
                                   TermSetName="Skills" />
          <ManagedMetadataProperty Identity="SPS-PastProjects"
                                   TermSetName="Past Projects" />
          <ManagedMetadataProperty Identity="SPS-School"
                                   TermSetName="Schools" />
        </ManagedMetadataProperties>
      </ProfileServiceApplication>
    </ProfileServiceApplications>

    <!--  Defines the project server instances to upgrade  -->
    <ProjectServiceApplications>
      <ProjectServiceApplication Name="Project Service Application"
                                 ApplicationPool="SharePoint Hosted Services">
        <ProjectWebInstances>
          <ProjectWebInstance Url="http://intranet.contoso.com/pwa"
                              PrimaryDbServer="SQLCluster"
                              ReportingDbServer="SQLCluster"
                              AdminAccount="contoso\sharepointfarm"
                              ArchiveDbName="SPS2010_Contoso_Intranet_ProjectService_Archive"
                              DraftDbName="SPS2010_Contoso_Intranet_ProjectService_Draft"
                              PublishedDbName="SPS2010_Contoso_Intranet_ProjectService_Published"
                              ReportingDbName="SPS2010_Contoso_Intranet_ProjectService_Reporting" />
        </ProjectWebInstances>
      </ProjectServiceApplication>
    </ProjectServiceApplications>

  </ServiceApplications>

  <!--
  Defines the custom solutions to be deployed (place in solutions folder)
  -->
  <Solutions RemoveIfInstalled="false">
    <Solution Name="sampleSolution1.wsp"
              GACDeployment="true"
              CASPolicies="false" >
      <WebApplications>
        <WebApplication>http://intranet.contoso.com</WebApplication>
      </WebApplications>
    </Solution>
    <Solution Name="sampleSolution2.wsp"
              GACDeployment="true"
              CASPolicies="false" />
  </Solutions>
  
</Settings>